package book.cert;

import java.io.FileInputStream;
import java.io.IOException;
import java.security.cert.CertPath;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;

public class CertPathTest {

	public static void main(String[] args) throws CertificateException, IOException {
		
		CertificateFactory factory = CertificateFactory.getInstance("X.509");
		FileInputStream in = new FileInputStream("/Users/apple/Documents/demo.cer");
		CertPath path = factory.generateCertPath(in);
		in.close();
	}
}
